<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>原型对象</title>
	</head>
	<body>
		<script>
			function Flower(){
				
			}
			Flower.prototype.name="长春花";
			Flower.prototype.genera="夹竹桃科 长春花属";
			Flower.prototype.area="非洲、亚热带、热带、以及中国大陆的华东、西南、中南等地";
			Flower.prototype.uses="观赏或用药等";
			Flower.prototype.showName=function(){
				alert(this.name);
			}
			var flower1=new Flower();
			flower1.showName();
			var flower2=new Flower();
			alert(flower1.showName==flower2.showName);
		</script>
		
	</body>
</html>
